<?php

namespace Database\Seeders;

use App\Http\Controllers\Controller;
use App\Models\AppUser;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;

class AppUserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = [
            ['mobile'=>'18757913151','nickname'=>'nemo','icon'=>Controller::$user_icon[1],'password'=>Hash::make('123456')]
        ];

        collect($data)->each(function ($item){

            AppUser::create($item);
        });
    }
}
